#include<bits/stdc++.h>
using namespace std;

const int N = 1e5 + 5;
int n,d[N];

int main(){
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);

    scanf("%d",&n);
    for(int i = 1;i <= n;i++){
        int t;
        scanf("%d",&t);
        d[t]++;
    }

    int rest = 0;
    for(int i = 1;i <= 100000;i++){
        if(!d[i]) continue;
        rest -= min(rest,d[i]);
        rest += d[i];
    }

    printf("%d",rest);

    return 0;
}